home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Add-On
/
Workbench Add-On - Volume 1.iso
/
Dev
/
Amiga-E
/
E_v3.2a_extras
/
Rexx
/
Ecompile.ced
next >
Wrap
Text File
|
1994-11-09
|
809b
|
38 lines
/* Ecompile.rexx: run E compiler from ced.
thanks to Rick Younie for improvements. */
epath = 'e:bin/' /* homedir of EC */
OPTIONS RESULTS
ADDRESS COMMAND
IF ~EXISTS('ram:ec') THEN 'copy 'epath'ec ram:' /* for slow sys: devices */
ADDRESS 'rexx_ced'
'status 19' /* ask ced filename */
file = result
'status 18'
IF result ~= 0 THEN DO /* save if changed */
'save' file
SAY 'saving changes..'
END
ELSE SAY 'no changes..'
PARSE VAR file comparg '.e' /* strip the extension */
SAY 'invoking E compiler with file' comparg'.e'
ADDRESS
OPTIONS FAILAT 1000000
'ram:ec -E' comparg /* run compiler */
ebyte = rc
IF EXISTS(comparg) THEN comparg /* run exe */
ADDRESS
pull /* wait for a <cr> */
'cedtofront'
IF ebyte>0 THEN 'jump to byte' ebyte /* jump to spot of error */
exit 0